package factory.abstract_factory;

import java.util.HashMap;

/**
 * @Author: Doream
 * @Date: 2022/1/28 12:29
 */
public class Test {
    public static void main(String[] args) {
        MilkTeaStore milkTeaStore = new MilkTeaStore(new CarameAndOrangeFactory());
        Juice orangeJuice = milkTeaStore.saleAJuice();
        MilkTea carameMilkTea = milkTeaStore.saleAMilkTea();
        milkTeaStore.setFactory(new RedBeanAndWaterMelonFactory());
        MilkTea redBeanMilkTea = milkTeaStore.saleAMilkTea();
        Juice watermelonJuice = milkTeaStore.saleAJuice();
        orangeJuice.show();
        System.out.println(carameMilkTea);
        System.out.println(redBeanMilkTea);
        watermelonJuice.show();
        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
    }
}
